package com.ship.job.task;

import com.ship.system.api.RemoteCommonService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 合同相关定时器
 */
@Component("contractTask")
public class ContractTask {
    private static final Logger logger = LoggerFactory.getLogger(ContractTask.class);
    @Resource
    private RemoteCommonService remoteCommonService;

    public void doContractState()
    {
        logger.info("开始执行船运合同offhire状态同步=============");
        //船运合同offhire时间段改变合同状态
        remoteCommonService.checkConShipState();
        logger.info("结束执行船运合同offhire状态同步=============");
    }
}
